This is an "auto-replace" library. When it is opened in the Clipbook window (this window may be hidden), Auto-replace mode is automatically enabled. It provides a feature similar to AutoCorrect available in WinWord and other word processors. As you edit your document, NoteTab checks the word preceding the cursor whenever you press a Clip activation key:
TAB SPACE RETURN ! " , . : ; = > ? ] }
If this word matches a Clip name in the list (case insensitive), it is automatically replaced according to the Clip instructions.
For example, if you type the HTML tag "<b>" in your document, NoteTab will automatically complete it with the closing tag placed after the cursor: "<B>ª</B>".
This library serves as a demonstration of the varied tasks that can be performed by the Editor Clipbook. You are free to customize it any way you like.
H="<a"
^!Clip "╫^?[Link to create==_Link|Link with image|Link to bookmark|Bookmark|MailTo]"
H="<address"
^!InsertHtml <ADDRESS>^P^&^P</ADDRESS>^P
H="<applet"
^!SetWizardLabel "Enter values for tag attributes"
^!InsertWizardHtml <APPLET CODE="^?{&URL of Java code}" ARCHIVE="^?{Archive &file}" ALIGN="^?{&Align=bottom|left|middle|right|top}" WIDTH="^?{Applet &width}" HEIGHT="^?{Applet &height}" ALT="^?{Alternative text &description}">^P ^&^P</APPLET>^P
H="<b"
^!InsertHtml <B>^&</B>
H="<base"
^!SetWizardLabel "Enter values for tag attributes"
^!SetWizardLabel "Enter values for tag attributes"
^!InsertWizardHtml <BASEFONT FACE="^?{Font &name=Arial, Helvetica, Sans Serif|Times New Roman, Times, Serif|Courier New, Courier|Wingding, Symbol|Comic Sans MS|Impact|Lucida|Palatino|Verdana}" SIZE="^?{Font &size=-7|-6|-5|-4|-3|-2|-1|+1|+2|+3|+4|+5|+6|+7}" COLOR="^?{Font &Color=^$GetClipText("╫Basic Color Codes")$}">^P^&
H="<big"
^!InsertHtml <BIG>^&</BIG>
H="<blockquote"
^!InsertHtml <BLOCKQUOTE>^P^&^P</BLOCKQUOTE>^P
H="<body"
^!SetWizardLabel "Enter values for tag attributes"
^!InsertWizardHtml <BODY BGCOLOR="^?{&Background Color=^$StrReplace("white^=#FFFFFF";"_white^=#FFFFFF";"^$GetClipText("╫Color Codes")$";True;False)$}" TEXT="^?{&Text Color=^$StrReplace("black^=#000000";"_black^=#000000";"^$GetClipText("╫Basic Color Codes")$";True;False)$}" LINK="^?{&Link Color=^$StrReplace("blue^=#0000FF";"_blue^=#0000FF";"^$GetClipText("╫Basic Color Codes")$";True;False)$}" VLINK="^?{&Visited Link Color=^$StrReplace("purple^=#800080";"_purple^=#800080";"^$GetClipText("╫Basic Color Codes")$";True;False)$}" ALINK="^?{&Active Link Color=^$StrReplace("red^=#FF0000";"_red^=#FF0000";"^$GetClipText("╫Basic Color Codes")$";True;False)$}" BACKGROUND="^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Background &file name}">^P^P^&^P^P</BODY>^P
^!InsertHtml ^?[(T=C)Document Type==_[None]^=|XHTML 1.0 Strict^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">|XHTML 1.0 Transitional^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">|XHTML 1.0 Frameset^=<?xml version="1.0"?>^%NL%<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">|HTML 4.01 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">|HTML 4.01 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">|HTML 4.01 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">|HTML 4 Strict^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">|HTML 4 Transitional^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">|HTML 4 Frameset^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">|HTML 3.2 (W3C)^=<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">|HTML (IE3)^=<!DOCTYPE HTML PUBLIC "-//Microsoft//DTD Internet Explorer 3.0 HTML//EN">|HTML 2 (Netscape)^=<!DOCTYPE HTML PUBLIC "-//WebTechs//DTD Mozilla HTML 2.0//EN">|HTML 2 (IETF)^=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">|HTML 1 (IETF)^=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML Level 1//EN">]^P<HTML>^P<HEAD>^P<TITLE>^?[&Web page title]</TITLE>^P^P<LINK REV="made" HREF="mailto:^?[Your &E-mail address]">^P<META NAME="author" CONTENT="^?[Your &name]">^P<META NAME="generator" CONTENT="^$GetProgName$ ^$GetProgVersion$">^P<META NAME="keywords" CONTENT="^?[Web page &keywords]">^P<META NAME="description" CONTENT="^?[Web page &description]">^P^&^P</HEAD>^P
^!SetWizardLabel "Enter values for tag attributes"
^!InsertWizardHtml <LINK HREF="^?{&URL of linked resource}" REL="^?{&Relationship with linked document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|next|prev|section|start|stylesheet|subsection}" REV="^?{&Relationship of current document=alternate|bookmark|chapter|contents|copyright|glossary|help|index|made|next|prev|section|start|stylesheet|subsection}">^P^&
H="<meta"
^!SetWizardLabel "Enter values for tag attributes"
^!InsertWizardHtml <META HTTP-EQUIV="^?{&HTTP header string=content-type|expires|page-enter|pics-label|pragma|refresh}" NAME="^?{&Name of meta-information=author|copyright|date|description|generator|identifier|keywords|revisit-after|robots}" CONTENT="^?{&Content}">^P^&
H="<ol"
^!InsertHtml <OL>^P^$RemoveTokens(^$StrFill(" <LI></LI>^P";^?[How many items?=1|2|_3|4|5|6|7|8|9])$)$</OL>^P^&
H="<option"
^!SetWizardLabel "Enter values for tag attributes"
^!InsertWizardHtml <OPTION VALUE="^?{&Option value (optional)}"^?{&Selected=Yes^= SELECTED|_No^=}></OPTION>^P^&
H="<p"
^!InsertHtml <P>^&</P>
H="<pre"
^!InsertHtml <PRE>^P^&^P</PRE>^P
H="<script"
^!SetWizardLabel "Enter values for tag attributes"